Skip to content

Conversation

@majiayu000
Copy link

Fixes #617

Changes

  • Add MergeLabels function to merge incoming labels with existing resource labels
  • Modify update-status command to read and apply labels from /kratix/metadata/labels.yaml
  • Update SDK contract with WriteLabels and ReadLabels function specifications
  • Add tests for label merging functionality

Add ability for workflows to set labels on the resource by writing
to /kratix/metadata/labels.yaml. The labels are merged with existing
resource labels after the pipeline completes.

- Add MergeLabels function to merge incoming labels with existing labels
- Modify update-status command to also handle labels.yaml
- Update SDK contract with WriteLabels and ReadLabels functions
- Add tests for label merging functionality

Fixes syntasso#617

Signed-off-by: majiayu000 <1835304752@qq.com>
@CLAassistant
Copy link

CLAassistant commented Jan 1, 2026

CLA assistant check
All committers have signed the CLA.

@shano
Copy link
Contributor

shano commented Jan 5, 2026

Hi @majiayu000 can you sign the CLA before we review your PRs.

@majiayu000
Copy link
Author

Hi @majiayu000 can you sign the CLA before we review your PRs.

Thanks for your reminder!!~

@shano
Copy link
Contributor

shano commented Jan 8, 2026

Thank you for the contribution, but this doesn't reflect the design direction we're looking for, by adding new files between pipeline stages.

We're not looking for improvements in this area at the moment, so I'll remove the good-first-issue label as I think this needs some further discussions internally on how to deliver this and close your PR, but thanks again for the submission!

@shano shano closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: ability to set resource labels from a workflow

3 participants